@cssPrefix: x-report;
// color
@red-color: #DB2828;
@red-hover-color: #d01919;
@orange-color: #F2711C;
@orange-hover-color: #f26202;
@yellow-color: #FBBD08;
@yellow-hover-color: #eaae00;
@olive-color: #B5CC18;
@olive-hover-color: #a7bd0d;
@green-color: #21BA45;
@green-hover-color: #16ab39;
@teal-color: #00B5AD;
@teal-hover-color: #009c95;
@blue-color: #2185D0;
@blue-hover-color: #1678c2;
@violet-color: #6435C9;
@violet-hover-color: #5829bb;
@purple-color: #A333C8;
@purple-hover-color: #9627ba;
@pink-color: #E03997;
@pink-hover-color: #e61a8d;
@brown-color: #A5673F;
@brown-hover-color: #975b33;
@grey-color: #767676;
@grey-hover-color: #838383;
@dark-color: #343a40;
@dark-hover-color: darken(@dark-color, 10%);
@black-color: #1B1C1D;
@black-hover-color: #27292a;

// base
@border-style: 1px solid #e0e2e4;
@icon-size: 18px;
@line-height: 1.25em;
@border-color: #e9e9e9;
@border: 1px solid @border-color;
@input-border: @border;
@input-padding: 0.5em 0.75em;
@input-box-shadow: inset 0 1px 2px hsla(0,0%,4%,.06);
@border-radius: 2px;
@form-field-height: 30px;
@primary-color: @blue-color;
@primary-hover-color: @blue-hover-color;
//base css
*{
  list-style: none;
  padding: 0;
  margin: 0;
}
select,input{
  line-height: 21px;
  outline: none;
}
select{
  height: 25px;
  min-width: 100px;
}
// method
.type-primary() {
  color: #fff;
  background-color: @primary-color;
  &:hover, &.active {
    color: #fff;
    background-color: @primary-hover-color;
  }
}

body {
  margin: 0;
}

.@{cssPrefix} {
  position: relative;
  font-size: 13px;
  line-height: normal;
  user-select: none;
  -moz-user-select: none;
  font-family: 'Lato', 'Source Sans Pro', Roboto, Helvetica, Arial, sans-serif;
  box-sizing: content-box;
  background: #fff;
  -webkit-font-smoothing: antialiased;

  textarea {
    font: 400 13px Arial, 'Lato', 'Source Sans Pro', Roboto, Helvetica, sans-serif;
  }
}

.@{cssPrefix}-sheet {
  position: relative;
  overflow: hidden;
}

.@{cssPrefix}-table {
  // html5 bottom margin bug
  vertical-align: bottom;
}

.@{cssPrefix}-tooltip {
  font-family: inherit;
  position: absolute;
  padding: 5px 10px;
  color: #fff;
  border-radius: 1px;
  background: rgba(0, 0, 0, 1);
  font-size: 12px;
  z-index: 201;

  &:before {
    pointer-events: none;
    position: absolute;
    left: calc(50% - 4px);
    top: -4px;
    content: "";
    width: 8px;
    height: 8px;
    background: inherit;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    z-index: 1;
    box-shadow: 1px 1px 3px -1px rgba(0, 0, 0, .3);
  }
}

.@{cssPrefix}-color-palette {
  padding: 5px;

  table {
    margin: 0;
    padding: 0;
    border-collapse: separate;
    border-spacing: 2;
    background: #fff;

    td {
      margin: 0;
      cursor: pointer;
      border: 1px solid transparent;

      &:hover {
        border-color: #ddd;
      }

      .@{cssPrefix}-color-palette-cell {
        width: 16px;
        height: 16px;
      }
    }
  }
}

.@{cssPrefix}-border-palette {
  padding: 6px;

  table {
    margin: 0;
    padding: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    table-layout: fixed;

    td {
      margin: 0;
    }
  }

  .@{cssPrefix}-border-palette-left {
    border-right: 1px solid #eee;
    padding-right: 6px;

    .@{cssPrefix}-border-palette-cell {
      width: 30px;
      height: 30px;
      cursor: pointer;
      text-align: center;

      .@{cssPrefix}-icon-img {
        opacity: .8;
      }

      &:hover {
        background-color: #eee;
      }
    }
  }

  .@{cssPrefix}-border-palette-right {
    padding-left: 6px;

    .@{cssPrefix}-toolbar-btn {
      margin-top: 0;
      margin-bottom: 3px;
    }

    .@{cssPrefix}-line-type {
      position: relative;
      left: 0;
      top: -3px;
    }

  }

}

.@{cssPrefix}-dropdown {
  position: relative;

  .@{cssPrefix}-dropdown-content {
    position: absolute;
    z-index: 200;
    background: #fff;
    box-shadow: 1px 2px 5px 2px rgba(51,51,51,.15);
  }
  &.inline-block{
    display: inline-block;
    vertical-align: middle;
  }
  &.bottom-left {
    .@{cssPrefix}-dropdown-content {
      top: calc(~'100% + 5px');
      left: 0;
    }
  }

  &.bottom-right {
    .@{cssPrefix}-dropdown-content {
      top: calc(~'100% + 5px');
      right: 0;
    }
  }

  &.top-left {
    .@{cssPrefix}-dropdown-content {
      bottom: calc(~'100% + 5px');
      left: 0;
    }
  }

  &.top-right {
    .@{cssPrefix}-dropdown-content {
      bottom: calc(~'100% + 5px');
      right: 0;
    }
  }


  .@{cssPrefix}-dropdown-title {
    padding: 0 5px;
    display: inline-block;
  }

  .@{cssPrefix}-dropdown-header {
    .@{cssPrefix}-icon.arrow-left {
      margin-left: 4px;
    }
    .@{cssPrefix}-icon.arrow-right {
      width: 10px;
      margin-right: 4px;
      .arrow-down {
        left: -130px;
      }
    }
  }
}
/* resizer **/
.@{cssPrefix}-resizer {
  position: absolute;
  z-index: 11;

  .@{cssPrefix}-resizer-hover {
    background-color: rgba(75, 137, 255, .25);
  }
  .@{cssPrefix}-resizer-line {
    position: absolute;
  }

  &.horizontal {
    cursor: row-resize;
    .@{cssPrefix}-resizer-line {
      border-bottom: 2px dashed rgb(75, 137, 255);
      left: 0;
      bottom: 0;
    }
  }
  &.vertical {
    cursor: col-resize;
    .@{cssPrefix}-resizer-line {
      border-right: 2px dashed rgb(75, 137, 255);
      top: 0;
      right: 0;
    }
  }
}
/* scrollbar */
.@{cssPrefix}-scrollbar {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #f4f5f8;
  opacity: 0.9;
  z-index: 12;
  &.horizontal {
    right: 15px;
    overflow-x: scroll;
    overflow-y: hidden;
    > div {
      height: 1px;
      background: #ddd;
    }
  }
  &.vertical {
    bottom: 15px;
    overflow-x: hidden;
    overflow-y: scroll;
    > div {
      width: 1px;
      background: #ddd;
    }
  }
  &:hover {
    // opacity: .85;
  }
}

/* @{cssPrefix}-overlayer */
.@{cssPrefix}-overlayer {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  .@{cssPrefix}-overlayer-content {
    position: absolute;
    overflow: hidden;
    pointer-events: none;
    width: 100%;
    height: 100%;
  }
}

.@{cssPrefix}-editor, .@{cssPrefix}-selector {
  box-sizing: content-box;
  position: absolute;
  overflow: hidden;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* @{cssPrefix}-selector */
.@{cssPrefix}-selector {
  .hide-input {
    position: absolute;
    z-index: 0;
    input {
      padding: 0;
      width: 0;
      border: none!important;
      min-width: 0;
    }
  }
  .@{cssPrefix}-selector-area {
    position: absolute;
    border: 2px solid rgb(75, 137, 255);
    background: rgba(75, 137, 255, .1);
    z-index: 5;
  }
  .@{cssPrefix}-selector-clipboard, .@{cssPrefix}-selector-autofill {
    position: absolute;
    background: transparent;
    z-index: 100;
  }
  .@{cssPrefix}-selector-clipboard {
    border: 2px dashed rgb(75, 137, 255);
  }
  .@{cssPrefix}-selector-autofill {
    border: 1px dashed rgba(0, 0, 0, .45); // #606060; // rgba(0, 0, 0, .2);
  }
  .@{cssPrefix}-selector-corner {
    pointer-events: auto;
    position: absolute;
    cursor: crosshair;
    font-size: 0;
    height: 5px;
    width: 5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgb(255, 255, 255);
    background: rgb(75, 137, 255);
  }
}
.@{cssPrefix}-editor {
  z-index: 20;
  .@{cssPrefix}-editor-area {
    position: absolute;
    text-align: left;
    border: 2px solid rgb(75, 137, 255);
    line-height: 0;
    z-index: 100;
    pointer-events: auto;

    textarea {
      box-sizing: content-box;
      border: none;
      padding: 0 3px;
      outline: none;
      resize: none;
      text-align: start;
      overflow-y: hidden;
      font: 400 13px Arial, 'Lato', 'Source Sans Pro', Roboto, Helvetica, sans-serif;
      color: inherit;
      white-space: normal;
      word-wrap: break-word;
      line-height: 22px;
      margin: 0;
    }

    .textline {
      overflow: hidden;
      visibility: hidden;
      position: fixed;
      top: 0;
      left: 0;
    }
  }
}

.@{cssPrefix}-item {
  user-select: none;
  background: 0;
  border: 1px solid transparent;
  outline: none;
  height: 26px;
  color: rgba(0, 0, 0, .9);
  line-height: 26px;
  list-style: none;
  padding: 2px 10px;
  cursor: default;
  text-align: left;
  overflow: hidden;

  &.disabled {
    pointer-events: none;
    opacity: 0.5;
  }

  &:hover, &.active {
    background: rgba(0, 0, 0, .05);
  }

  // &.active {
    ////   background: #89aef53d;
  // }

  &.divider {
    height: 0;
    padding: 0;
    margin: 5px 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
  }

  .label {
    float: right;
    opacity: .65;
    font-size: 1em;
  }
}

.@{cssPrefix}-item,
.@{cssPrefix}-header,
{

  &.state {
    padding-left: 35px!important;
    position: relative;

    &:before {
      content: '';
      position: absolute;
      width: 10px;
      height: 10px;
      left: 12px;
      top: calc(50% - 5px);
      background: rgba(0, 0, 0, 0.08);
      // border: 1px solid rgba(0, 0, 0, 0.1);
      border-radius: 2px;
    }
  }
  &.state.checked:before {
    background: #4b89ff;
    // content: '';
    // position: absolute;
    // width: 5px;
    // height: 12px;
    // color: #4b89ff; // #353A41;
    // border-left: none;
    // border-top: none;
    // border-bottom: 2px solid;
    // border-right: 2px solid;
    // left: 15px;
    // top: 6px;
    // background: none;
    // border-radius: 0;
    // transform-origin: center;
    // transform: rotate(45deg);
    // -webkit-transform: rotate(45deg);
  }

}

.@{cssPrefix}-checkbox {
  position: relative;
  display: inline-block;
  backface-visibility: hidden;
  outline: 0;
  vertical-align: baseline;
  font-style: normal;
  font-size: 1rem;
  line-height: 1em;
  > input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0!important;
    outline: 0;
    z-index: -1;
  }
}

.@{cssPrefix}-suggest,
.@{cssPrefix}-contextmenu,
.@{cssPrefix}-sort-filter {
  position: absolute;
  box-shadow: 1px 2px 5px 2px rgba(51, 51, 51, 0.15);
  background: #fff;
  z-index: 100;
  width: 260px;
  pointer-events: auto;
  overflow: auto;
}

.@{cssPrefix}-suggest {
  width: 200px;
}

.@{cssPrefix}-filter {
  border: 1px solid #e9e9e9;
  font-size: 12px;
  margin: 10px;

  .@{cssPrefix}-header {
    padding: .5em .75em;
    background: #f8f8f9;
    border-bottom: 1px solid #e9e9e9;
    border-left: 1px solid transparent;
  }
  .@{cssPrefix}-body {
    height: 200px;
    overflow-y: auto;

    .@{cssPrefix}-item {
      height: 20px;
      line-height: 20px;
    }
  }
}

.@{cssPrefix}-sort-filter {
  .@{cssPrefix}-buttons {
    margin: 10px;
  }
}

.@{cssPrefix}-toolbar, .@{cssPrefix}-bottombar {
  height: 40px;
  padding: 0 30px;
  text-align: left;
  background: #f5f6f7;
  display: flex;
  box-sizing: border-box;
}

.@{cssPrefix}-bottombar {
  position: relative;
  border-top: 1px solid #e0e2e4;

  .@{cssPrefix}-menu > li {
    line-height: 40px;
    height: 40px;
    padding-top: 0;
    padding-bottom: 0;
    vertical-align: middle;
    border-right: 1px solid #e8eaed;
  }
}

.@{cssPrefix}-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  user-select: none;
}
.@{cssPrefix}-menu > li {
  float: left;
  line-height: 1.25em;
  padding: .785em 1em;
  margin: 0;
  vertical-align: middle;
  text-align: left;
  font-weight: 400;
  color: #80868b;
  white-space: nowrap;
  cursor: pointer;
  transition: all .3s;
  font-weight: bold;

  &.active {
    background-color: #fff;
    color: rgba(0, 0, 0, .65);
  }

  .@{cssPrefix}-icon {
    margin: 0 6px;

    .@{cssPrefix}-icon-img {
      &:hover {
        opacity: .85;
      }
    }
  }

  .@{cssPrefix}-dropdown {
    display: inline-block;
  }
}

.@{cssPrefix}-toolbar {
  border-bottom: 1px solid #e0e2e4;

  .@{cssPrefix}-toolbar-btns {
    display: inline-flex;
  }

  .@{cssPrefix}-toolbar-more {
    padding: 0 6px 6px;
    text-align: left;
    .@{cssPrefix}-toolbar-divider {
      margin-top: 0;
    }
  }

  .@{cssPrefix}-toolbar-btn {
    flex: 0 0 auto;
    display: inline-block;
    border: 1px solid transparent;
    height: 26px;
    line-height: 26px;
    min-width: 26px;
    margin: 6px 1px 0;
    padding: 0;
    text-align: center;
    border-radius: 2px;

    &.disabled {
      pointer-events: none;
      opacity: 0.5;
    }

    &:hover, &.active {
      background: rgba(0, 0, 0, .08);
    }
  }
}

.@{cssPrefix}-toolbar-divider {
  display: inline-block;
  border-right: 1px solid #e0e2e4;
  width: 0;
  vertical-align: middle;
  height: 18px;
  margin: 12px 3px 0;
}

.@{cssPrefix}-print {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.@{cssPrefix}-print-bar {
  background: #424242;
  height: 60px;
  line-height: 60px;
  padding: 0 30px;

  .-title {
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
    float: left;
  }

  .-right {
    float: right;
    margin-top: 12px;
  }
}
.@{cssPrefix}-print-content {
  display: flex;
  flex: auto;
  flex-direction: row;
  background: #d0d0d0;
  height: calc(100% - 60px);

  .-sider {
    flex: 0 0 300px;
    width: 300px;
    border-left: 2px solid #ccc;
    background: #fff;
  }

  .-content {
    flex: auto;
    overflow-x: auto;
    overflow-y: scroll;
    height: 100%;
  }
}


.@{cssPrefix}-canvas-card-wraper {
  margin: 40px 20px;
}
.@{cssPrefix}-canvas-card {
  background: #fff;
  margin: auto;
  page-break-before: auto;
  page-break-after: always;
  box-shadow: 0 8px 10px 1px rgba(0,0,0,0.14), 0 3px 14px 3px rgba(0,0,0,0.12), 0 4px 5px 0 rgba(0,0,0,0.20);
}

.@{cssPrefix}-calendar {
  color: rgba(0,0,0,.65);
  background: #ffffff;
  user-select: none;

  .calendar-header {
    font-weight: 700;
    line-height: 30px;
    text-align: center;
    width: 100%;
    float: left;
    background: #f9fafb;

    .calendar-header-left {
      padding-left: 5px;
      float: left;
    }

    .calendar-header-right {
      float: right;

      a {
        padding: 3px 0;
        margin-right: 2px;
        border-radius: 2px;
      }
      a:hover {
        background: rgba(0,0,0,.08);
      }
    }
  }

  .calendar-body {
    border-collapse: collapse;
    border-spacing: 0;

    th, td {
      width: 100%/7;
      min-width: 32px;
      text-align: center;
      font-weight: 700;
      line-height: 30px;
      padding: 0;
    }

    td > .cell {
      // border: 1px solid rgba(0,0,0,.05);

      &:hover {
        background: #ecf6fd;
      }

      &.active, &.active:hover {
        background: #ecf6fd;
        color: #2185D0;
      }

      &.disabled {
        pointer-events: none;
        opacity: 0.5;
      }
    }
  }
}

.@{cssPrefix}-datepicker {
  box-shadow: 2px 2px 5px rgba(0,0,0,.2);
  position: absolute;
  left: 0;
  top: calc(100% + 5px);
  z-index: 10;
  width: auto;
}
.@{cssPrefix}-colorPick{
  display: inline-block;
  height: 20px;
  width: 40px;
  border: 1px solid @grey-color;
  vertical-align: middle;
  cursor: pointer;
  color: transparent;
  //pointer-events: none;
}
.@{cssPrefix}-buttons {
  display: flex;
  justify-content: flex-end;

  .@{cssPrefix}-button {
    margin-left: 8px;
  }
}
.@{cssPrefix}-button {
  display: inline-block;
  border-radius: 3px;
  line-height: 1em;
  min-height: 1em;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  font-size: 1em;
  font-weight: 700;
  padding: .75em 1em;
  color: rgba(0,0,0,.6);
  background: #E0E1E2;
  text-decoration: none;
  font-family: "Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;
  //box-shadow: 0px 1px 2px -1px rgba(255,255,255,0.5) inset, 0px -2px 0px 0px rgba(0,0,0,0.1) inset;
  //box-shadow: 0 0 0 0 rgba(0,0,0,.5) inset;
  outline: none;
  vertical-align: baseline;
  zoom: 1;
  user-select: none;
  transition: all 0.1s linear;

  &.active, &:hover {
    background-color: #C0C1C2;
    color: rgba(0,0,0,.8);
  }

  &.primary {
    .type-primary;
  }
}

// form begin
.@{cssPrefix}-form-input {
  font-size: 1em;
  position: relative;
  font-weight: 400;
  display: inline-flex;
  color: rgba(0,0,0,.87);

  input {
    z-index: 1;
    margin: 0;
    max-width: 100%;
    flex: 1 0 auto;
    outline: 0;
    -webkit-tap-highlight-color: rgba(255,255,255,0);
    text-align: left;
    line-height: @form-field-height;
    height: @form-field-height;
    padding: 0 8px;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 3px;
    transition: box-shadow .1s ease,border-color .1s ease;
    box-shadow: inset 0 1px 2px hsla(0,0%,4%,.06);

    &:focus {
      border-color: rgb(75, 137, 255);
      box-shadow: inset 0 1px 2px rgba(75, 137, 255, .2);
    }
  }
}

.@{cssPrefix}-form-select {
  position: relative;
  display: inline-block;
  background: #fff;
  border: @input-border;
  border-radius: 2px;
  cursor: pointer;
  color: rgba(0,0,0,.87);
  user-select: none;
  box-shadow: inset 0 1px 2px hsla(0,0%,4%,.06);

  .input-text {
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 60px;
    width: auto;
    height: @form-field-height;
    line-height: @form-field-height;
    padding: 0 8px;
  }
}
.@{cssPrefix}-form-fields {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

  .@{cssPrefix}-form-field {
    flex: 0 1 auto;
    .label {
      display: inline-block;
      margin: 0 10px 0 0;
    }
  }
}
.@{cssPrefix}-form-field {
  display: block;
  vertical-align: middle;
  margin-left: 10px;
  margin-bottom: 10px;

  &:first-child {
    margin-left: 0;
  }

  &.error {
    .@{cssPrefix}-form-select, input {
      border-color: #f04134;
    }
  }

  .tip {
    color: #f04134;
    font-size: .9em;
  }
}
// form end
.@{cssPrefix}-dimmer {
  display: none;
  position: absolute;
  top: 0 !important;
  left: 0 !important;
  width: 100%;
  height: 100%;
  text-align: center;
  vertical-align: middle;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-duration: 0.5s;
  animation-duration: 0.5s;
  transition: background-color 0.5s linear;
  user-select: none;
  z-index: 1000;

  &.active {
    display: block;
    opacity: 1;
  }
}

form fieldset {
  border: none;

  label {
    display: block;
    margin-bottom: .5em;
    font-size: 1em;
    color: #666;
  }

  select {
    font-size: 1.1em;
    width: 100%;
    background-color: #fff;
    border: none;
    border-bottom: 2px solid #ddd;
    padding: .5em .85em;
    border-radius: 2px;
  }
}

.@{cssPrefix}-modal, .@{cssPrefix}-toast {
  font-size: 13px;
  position: fixed;
  z-index: 1001;
  text-align: left;
  line-height: @line-height;
  min-width: 360px;
  color: rgba(0,0,0,.87);
  font-family: 'Lato', 'Source Sans Pro', Roboto, Helvetica, Arial, sans-serif;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.1);
  background-color: #fff;
  background-clip: padding-box;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 8px;
}

.@{cssPrefix}-toast {
  background-color: rgba(255,255,255,.85);
}

.@{cssPrefix}-modal-header, .@{cssPrefix}-toast-header {
  font-weight: 600;
  background-clip: padding-box;
  background-color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(0,0,0,.05);
  border-radius: 4px 4px 0 0;

  .@{cssPrefix}-icon {
    position: absolute;
    right: .8em;
    top: .65em;
    border-radius: 18px;

    &:hover {
      opacity: 1;
      background: rgba(0, 0, 0, 0.08);
    }
  }
}

.@{cssPrefix}-toast-header {
  color: @orange-color;
}

.@{cssPrefix}-modal-header {
  border-bottom: @border-style;
  background: rgba(0, 0, 0, .08);
  font-size: 1.0785em;
}

.@{cssPrefix}-modal-header,
.@{cssPrefix}-modal-content,
.@{cssPrefix}-toast-header,
.@{cssPrefix}-toast-content {
  padding: .75em 1em;
}

@media screen and (min-width: 320px) and (max-width: 480px) {
  .@{cssPrefix}-toolbar {
    display: none;
  }
}

.@{cssPrefix}-icon {
  width: 18px;
  height: 18px;
  margin: 1px 1px 2px 1px;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  overflow: hidden;
  position: relative;
  display: inline-block;
  line-height: 0;
  &.listMark{
    height: 20px;
  }
  .@{cssPrefix}-icon-img {
    background-image: url('../assets/sprite-svg.png');
    background-repeat: no-repeat;
    position: absolute;
    width: 262px;
    height: 444px;
    opacity: 0.56;
    &.preview{
      width: 100%;
      height: 100%;
      background-size: contain;
      opacity: 1;
      background-image: url('');
    }
    &.save{
      width: 100%;
      height: 100%;
      opacity: 1;
      background-size: contain;
      background-image: url('');
    }
    &.undo {
      left: 0;
      top: 0;
    }
    &.redo {
      left: -1 * @icon-size;
      top: 0;
    }
    &.print {
      left: -2 * @icon-size;
      top: 0;
    }
    &.paintformat {
      left: -3 * @icon-size;
      top: 0;
    }
    &.clearformat {
      left: -4 * @icon-size;
      top: 0;
    }
    &.font-bold {
      left: -5 * @icon-size;
      top: 0;
    }
    &.font-italic {
      left: -6 * @icon-size;
      top: 0;
    }
    &.underline {
      left: -7 * @icon-size;
      top: 0;
    }
    &.strike {
      left: -8 * @icon-size;
      top: 0;
    }
    &.color {
      left: -9 * @icon-size;
      top: 0;
    }
    &.bgcolor {
      left: -10 * @icon-size;
      top: 0;
    }
    &.merge {
      left: -11 * @icon-size;
      top: 0;
    }
    &.align-left {
      left: -12 * @icon-size;
      top: 0;
    }
    &.align-center {
      left: -13 * @icon-size;
      top: 0;
    }
    &.align-right {
      left: 0;
      top: -1 * @icon-size;
    }
    &.align-top {
      left: -1 * @icon-size;
      top: -1 * @icon-size;
    }
    &.align-middle {
      left: -2 * @icon-size;
      top: -1 * @icon-size;
    }
    &.align-bottom {
      left: -3 * @icon-size;
      top: -1 * @icon-size;
    }
    &.expand-right {
      left: -70px;
      top: -55px;
      opacity: 0.8;
    }
    &.expand-down {
      left: -3 * @icon-size;
      top: -1 * @icon-size;
    }
    &.textwrap {
      left: -4 * @icon-size;
      top: -1 * @icon-size;
    }
    &.autofilter {
      left: -5 * @icon-size;
      top: -1 * @icon-size;
    }
    &.formula {
      left: -6 * @icon-size;
      top: -1 * @icon-size;
    }
    &.arrow-down {
      left: -7 * @icon-size;
      top: -1 * @icon-size;
    }
    &.arrow-right {
      left: -8 * @icon-size;
      top: -1 * @icon-size;
    }
    &.link {
      left: -9 * @icon-size;
      top: -1 * @icon-size;
    }
    &.chart {
      left: -10 * @icon-size;
      top: -1 * @icon-size;
    }
    &.freeze {
      left: -11 * @icon-size;
      top: -1 * @icon-size;
    }
    &.ellipsis {
      left: -12 * @icon-size;
      top: -1 * @icon-size;
    }
    &.add {
      left: -13 * @icon-size;
      top: -1 * @icon-size;
    }
    &.border-all {
      left: 0;
      top: -2 * @icon-size;
    }
    &.border-inside {
      left: -1 * @icon-size;
      top: -2 * @icon-size;
    }
    &.border-horizontal {
      left: -2 * @icon-size;
      top: -2 * @icon-size;
    }
    &.border-vertical {
      left: -3 * @icon-size;
      top: -2 * @icon-size;
    }
    &.border-outside {
      left: -4 * @icon-size;
      top: -2 * @icon-size;
    }
    &.border-left {
      left: -5 * @icon-size;
      top: -2 * @icon-size;
    }
    &.border-top {
      left: -6 * @icon-size;
      top: -2 * @icon-size;
    }
    &.border-right {
      left: -7 * @icon-size;
      top: -2 * @icon-size;
    }
    &.border-bottom {
      left: -8 * @icon-size;
      top: -2 * @icon-size;
    }
    &.border-none {
      left: -9 * @icon-size;
      top: -2 * @icon-size;
    }
    &.line-color {
      left: -10 * @icon-size;
      top: -2 * @icon-size;
    }
    &.line-type {
      left: -11 * @icon-size;
      top: -2 * @icon-size;
    }
    &.close {
      left: -13 * @icon-size;
      top: -2 * @icon-size;
    }
    &.chevron-down {
      left: 0;
      top: -3 * @icon-size;
    }
    &.chevron-up {
      left: -1 * @icon-size;
      top: -3 * @icon-size;
    }
    &.chevron-left {
      left: -2 * @icon-size;
      top: -3 * @icon-size;
    }
    &.chevron-right {
      left: -3 * @icon-size;
      top: -3 * @icon-size;
    }
    &.dataFilter{
      left: -108px;
      top: -55px;
      opacity: 1;
    }
    &.dataCondition{
      left: -144px;
      top: -54px;
    }
    &.dataDb{
      left: -126px;
      top: -54px;
      opacity: 1;
    }
    &.group{
      left: -162px;
      top: -54px;
    }
    &.listMark{
      left: 0px;
      top: -35px;
      background-size: 50%;
    }
  }
}
// 预览
.@{cssPrefix}-preview {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 200;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.@{cssPrefix}-preview-bar{
  background: #424242;
  height: 60px;
  line-height: 60px;
  padding: 0 30px;
  .-right{
    float: right;
    margin-top: 12px;
  }
  .-title{
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
    float: left;
  }
}
.@{cssPrefix}-preview-content{
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background: #fff;
  overflow: auto;
}
.@{cssPrefix}-preview-table{
  border-color: rgba(0, 0, 0, 0.2);
  width: max-content;
  border-collapse: collapse;
}
.@{cssPrefix}-preview-td{
  height: 20px;
  width: 100px;
}
// 过滤
.@{cssPrefix}-dataFilter {
  position: absolute;
  right: 0;
  top: 0%;
  bottom: 30px;
  z-index: 100;
  width: 300px;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 0 7px #979797;
}
.@{cssPrefix}-dataFilter-bar{
  background: #424242;
  height: 60px;
  line-height: 60px;
  padding: 0 30px;
  .-right{
    float: right;
    margin-top: 12px;
  }
  .-title{
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
    float: left;
  }
}
.@{cssPrefix}-dataFilter-add{
  position: relative;
  text-align: right;
  padding: 10px;
  z-index: 1;
  .@{cssPrefix}-icon{
    cursor: pointer;
    transform: scale(1.2);
    border: 1px solid #424242;
    border-radius: 50%;
  }
}
.@{cssPrefix}-dataFilter-content{
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 20px 20px;
  background: #fff;
  overflow: auto;
}
.@{cssPrefix}-dataFilter-item{
  position: relative;
  border: 1px solid #c2c3c4;
  margin-bottom: 10px;
  padding: 5px;
  line-height: 35px;
  border-radius: 5px;
}
.@{cssPrefix}-dataFilter-delete{
  position: absolute;
  top: 5px;
  right: 5px;
  .@{cssPrefix}-icon{
    cursor: pointer;
    border: 1px solid #424242;
    border-radius: 50%;
  }
}
.@{cssPrefix}-dataFilter-label{
  width: 60px;
  display: inline-block;
  text-align: right;
}
// 条件
.@{cssPrefix}-dataCondition {
  position: absolute;
  left: 50%;
  top: 10%;
  margin-left: -350px;
  z-index: 100;
  width: 700px;
  height: 400px;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 0 7px #979797;
}
.@{cssPrefix}-dataCondition-bar{
  background: #424242;
  height: 60px;
  line-height: 60px;
  padding: 0 30px;
  .-right{
    float: right;
    margin-top: 12px;
  }
  .-title{
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
    float: left;
  }
}
.@{cssPrefix}-dataCondition-content{
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 20px 20px;
  background: #fff;
  overflow: hidden;
}
.@{cssPrefix}-dataCondition-right,
.@{cssPrefix}-dataCondition-left{
  position: relative;
  box-sizing: border-box;
  float: left;
  width: 50%;
  height: 100%;
  padding: 0 10px;
  overflow: auto;
}
.@{cssPrefix}-dataCondition-right{
  padding-top: 20px;
}
.@{cssPrefix}-dataCondition-left{
  border-right: 1px dashed #424242;
}
.@{cssPrefix}-dataCondition-add{
  position: relative;
  text-align: right;
  padding: 10px;
  z-index: 1;
  .@{cssPrefix}-icon{
    cursor: pointer;
    transform: scale(1.2);
    border: 1px solid #424242;
    border-radius: 50%;
  }
}
.@{cssPrefix}-dataCondition-list{
  position: absolute;
  top: 40px;
  bottom: 0px;
  left: 10px;
  right: 10px;
  overflow: auto;
}
.@{cssPrefix}-dataCondition-item{
  position: relative;
  border: 1px solid #c2c3c4;
  margin-bottom: 10px;
  padding: 5px;
  line-height: 30px;
  border-radius: 5px;
}
.@{cssPrefix}-dataCondition-delete{
  position: absolute;
  top: 5px;
  right: 5px;
  .@{cssPrefix}-icon{
    cursor: pointer;
    border: 1px solid #424242;
    border-radius: 50%;
  }
}
.@{cssPrefix}-dataCondition-styleItem{
  margin: 10px 0;
}
.@{cssPrefix}-dataCondition-styleLabel{
  width: 60px;
  display: inline-block;
  text-align: right;
}
// 数据表
.@{cssPrefix}-dataDb {
  position: absolute;
  right: 0;
  top: 0%;
  bottom: 30px;
  z-index: 100;
  width: 300px;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 0 7px #979797;
}
.@{cssPrefix}-dataDb-bar{
  background: #424242;
  height: 60px;
  line-height: 60px;
  padding: 0 30px;
  .-right{
    float: right;
    margin-top: 12px;
  }
  .-title{
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
    float: left;
  }
}
.@{cssPrefix}-dataDb-content{
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 20px 20px;
  background: #fff;
  overflow: auto;
}
.@{cssPrefix}-dataDb-list{
  line-height: 25px;
}
.@{cssPrefix}-dataDb-item{
  &.extand{
    .@{cssPrefix}-dataDb-item-label .right{
      display: none;
    } 
    .@{cssPrefix}-dataDb-item-label .down{
      display: inline-block;
    } 
    .@{cssPrefix}-dataDb-item-cont{
      display: block;
      height: auto;
    }
  }
}
.@{cssPrefix}-dataDb-item-label{
  display: block;
  font-size: 14px;
  cursor: pointer;
  .down{
    display: none;
  }
  .right{
    display: inline-block;
  }
}
.@{cssPrefix}-dataDb-item-cont{
  display: none;
  height: 0;
  transition: all 0.3s;
}
.@{cssPrefix}-dataDb-item-code{
  cursor: pointer;
  text-indent: 1.5em;
  &:hover{
    background: rgba(0, 0, 0, .15);
  }
}
:export {
  cssPrefix: @cssPrefix 
}